package org.wmq.service.impl;

import org.wmq.Mapper.MySimpleMapMapper;
import org.wmq.Mapper.impl.MySimpleMapMapperImpl;
import org.wmq.model.Entity.MySimpleMap;
import org.wmq.service.MySimpleMapService;

import java.io.IOException;

public class MySimpleMapServiceImpl implements MySimpleMapService {
    private final MySimpleMapMapper mySimpleMapMapper = new MySimpleMapMapperImpl();
    public boolean save(MySimpleMap mySimpleMap) throws IOException {
        return mySimpleMapMapper.insert(mySimpleMap);
    }
    public boolean updateById(MySimpleMap mySimpleMap) throws IOException {
        return mySimpleMapMapper.updateById(mySimpleMap);
    }
    public boolean deleteById(Long id) throws IOException {
        return mySimpleMapMapper.deleteById(id);
    }
    public MySimpleMap selectById(Long id) throws IOException {
        return mySimpleMapMapper.selectById(id);
    }
}
